package com.cloud.cmt.usermanage.service;

import com.cloud.cmt.usermanage.entity.vo.UserInfoVO;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

/**
 * Created by Administrator on 2017/10/21.
 */
@Repository
public interface UserInfoVORepository extends JpaRepository<UserInfoVO, Long> {
    @Query("select u from UserInfoVO u where u.employee.name like ?1 or u.userName like ?1 ")
    Page<UserInfoVO> userInfo(String value, Pageable pageInfo);
}
